/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package xmlasm.action;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;
import java.util.Map;
import xmlasm.dto.User;

/**
 *
 * @author Hoang
 */
public class IndexAction extends ActionSupport {

    public String execute() throws Exception
    {
        //Co check cookies gi thi check trong nay
        //Ghi cookies trong file khac
        Map session = ActionContext.getContext().getSession();
        User user = (User) session.get("USER");
        if (user == null) {
            return "unlogin";
        } else {
            return "logined";
        }
        
    }
}
